import Cookie from 'js-cookie'

const isLogin = () => !!Cookie.get('token')

const getToken = () => Cookie.get('token')

const removeUserInfo = () => {
  Cookie.remove('token')
}

export {
  isLogin,
  getToken,
  removeUserInfo
}